<?php

/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| Here you may define all of your model factories. Model factories give
| you a convenient way to create models for testing and seeding your
| database. Just tell the factory how a default model should look.
|
*/

$factory->define(App\Models\UserLesson::class, function (Faker\Generator $faker) {
    static $sequence = 0;
    return [
        'user_id' => rand(1, 5),
        'course_id' => rand(1, 3),
        'lesson_id' => rand(1, 50),
        'is_dub' => rand(0, 1),
        'essence_qa_count' => rand(0, 3),
        'play_game_time' => rand(10, 30),
        'sequence' => $sequence++,
    ];
});
